﻿using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.EntityFrameworkCore;

namespace Model
{
    public partial class EFContext: DbContext
    {



        public static string ConnectionString { get; set; }


        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            //ConnectionString = "Data Source=localhost; Port=3306; User ID=root; Password=bin123; Initial Catalog=wechatauto;";
            optionsBuilder.UseMySQL(ConnectionString);
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {

        }


        #region 管理员

        public DbSet<sys_admin> sys_admin { get; set; }

        public DbSet<sys_admin_group> sys_admin_group { get; set; }

        public DbSet<sys_admin_group_url> sys_admin_group_url { get; set; }

        public DbSet<sys_admin_url> sys_admin_url { get; set; }

        #endregion


        #region 内容管理

        //public DbSet<cms_albums> cms_albums { get; set; }

        //public DbSet<cms_animation> cms_animation { get; set; }


        //public DbSet<cms_article> cms_article { get; set; }

        //public DbSet<cms_article_attr> cms_article_attr { get; set; }

        //public DbSet<cms_article_attr_val> cms_article_attr_val { get; set; }



        //public DbSet<cms_article_audio> cms_article_audio { get; set; }

        //public DbSet<cms_article_fields> cms_article_fields { get; set; }

        //public DbSet<cms_article_fields_value> cms_article_fields_value { get; set; }

        //public DbSet<cms_article_tab> cms_article_tab { get; set; }

        //public DbSet<cms_article_video> cms_article_video { get; set; }

        //public DbSet<cms_category> cms_category { get; set; }

        //public DbSet<cms_messages> cms_messages { get; set; }

        //public DbSet<cms_nav_category> cms_nav_category { get; set; }


        #endregion


        #region 会员
        //public DbSet<accept_recommen> accept_recommen { get; set; }

        //public DbSet<enterprise_codes> enterprise_codes { get; set; }

        //public DbSet<fixed_scheduling> fixed_scheduling { get; set; }

        //public DbSet<member_base> member_base { get; set; }

        //public DbSet<member_expert> member_expert { get; set; }

        //public DbSet<member_expert_scheduling> member_expert_scheduling { get; set; }

        //public DbSet<member_msg> member_msg { get; set; }

        //public DbSet<member_purchased> member_purchased { get; set; }

        //public DbSet<member_recommend> member_recommend { get; set; }

        //public DbSet<member_regular> member_regular { get; set; }

        //public DbSet<member_regular_child> member_regular_child { get; set; }

        //public DbSet<member_regular_signin> member_regular_signin { get; set; } 
        #endregion





    }
}
